package com.morgan.meizu.bbs;

import java.util.ArrayList;
import java.util.List;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

public class ForumStatistics {

	/**
	 * @param args
	 */
	public static void main(String[] args) throws Exception {
		
		String bbsIndexPage= "http://bbs.meizu.cn/";
		Document doc = Jsoup.connect(bbsIndexPage).timeout(Constants.HTTP_CONNECTION_TIMEOUT_MILLISECOND).get();
		Elements statistics = doc.select("#bbs_statistics span");
		List<String> list = new ArrayList<String>();
		for (Element info : statistics) {
			list.add(info.text());
		}
		
		System.out.println(list.size());
	}

}
